package twu.shubham.library;


public class movieRecord {

    private String movieName;
    private int year;
    private String director;
    private int rating;

    public movieRecord(String movieName, int year, String director, int rating)
    {
             this.movieName = movieName;
             this.year = year;
             this.director = director;
             this.rating = rating;
    }

    public int moviePrint(int serialNo) {
        if(movieName.length() > 0)
        {
            System.out.println(serialNo +"\t\t" + movieName +"\t" + year +"\t" + director +"\t\t" + rating);
            return 1;
        }
        return 0;
    }
}
